<div id="nav">
  <div class="banner f-pr">
    <!--{if !$store.store_banner}-->
    <h2 class="name"><a href="{url app=store&id=$store.store_id}">{$store.store_name|escape}</a></h2>
    <!--{/if}-->
    <a href="{url app=store&id=$store.store_id}">
    <!--{if $store.store_banner}-->
    <img src="{$store.store_banner}" width="1200" height="88" />
    <!--{else}-->
    <img src="{res file=images/banner.jpg}" width="1200" height="88" />
    <!--{/if}-->
    </a></div>
  <ul>
    <li><a class="{if $smarty.get.app eq 'store' and $smarty.get.act eq 'index'}active{else}normal{/if}" href="{url app=store&id=$store.store_id}"><span>店铺首页</span></a></li>
    <li><a class="{if $smarty.get.app eq 'store' and $smarty.get.act eq 'search' and $smarty.get.cate_id eq ''}active{else}normal{/if}" href="{url app=store&id=$store.store_id&act=search}"><span>全部商品</span></a></li>
    <!--{foreach from=$store_gcategory_nav item=store_nav}-->
    <li><a class="{if $smarty.get.app eq 'store' and $smarty.get.act eq 'search' and $p_category.cate_id eq $store_nav.cate_id}active{else}normal{/if}" href="{url app=store&id=$store.store_id&act=search&cate_id=$store_nav.cate_id}"><span>{$store_nav.cate_name|escape}</span></a></li>
    <!--{/foreach}-->
    <li><a class="{if $smarty.get.app eq 'store' and $smarty.get.act eq 'about'}active{else}normal{/if}" href="{url app=store&id=$store.store_id&act=about}"><span>店铺介绍</span></a></li>
  </ul>
</div>
